import request from '@/axios'

export function list(query) {
    return request({
        url: '/bus/apply/list',
        method: 'post',
        data: query
    })
}

export function info(id) {
    return request({
        url: '/bus/apply/info/' + id,
        method: 'get'
    })
}

export function save(data) {
    return request({
        url: '/bus/apply/save',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/bus/apply/update',
        method: 'post',
        data
    })
}

export function remove(data) {
    return request({
        url: '/bus/apply/delete',
        method: 'post',
        data
    })
}

export function down(data) {
    data.json  = true
    let config = {
        responseType: 'arraybuffer',
    }
    let url =  '/bus/apply/down'
    return request.post(url,data,config)
}

